package com.paradogs.gs.db;

import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.paradogs.gs.misc.BaseMgrEntity;
import com.paradogs.gs.misc.annotations.CodeAutoGeneratorModule;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: yumi
 * @date: 2024/10/23  22:59
 * @Description: TODO
 */
@CodeAutoGeneratorModule("role")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ProtobufClass
@TableName(value = "mgr_role", autoResultMap = true)
public class Role extends BaseMgrEntity {

    @Column(comment = "等级")
    @TableField("level")
    private Integer level;

    @Column(comment = "经验")
    @TableField("exp")
    private Long exp;

    @Column(comment = "游戏名称")
    @TableField("nickName")
    private String nickName;

    @Column(comment = "性别")
    @TableField("sex")
    private Integer sex;

    @Column(comment = "是否初始化角色过")
    @TableField("init")
    private Boolean init = false;

}
